//
//  BVMetaModel.m
//  AFNetworking
//
//  Created by xiute on 2019/10/15.
//

#import "BVMetaModel.h"

@implementation BVMetaArenaLocation



@end

@implementation BVMetaShootDate



@end


@implementation BVMetaPointr



@end

@implementation BVMetaPlayer



@end

@implementation BVMetaArena

- (BOOL)isEqual:(BVMetaArena *)object {
    if ([self.objectId isEqual:object.objectId]) {
        return YES;
    }
    return NO;
}

@end

@implementation BVMetaWorkout



@end

@implementation BVMetaModel

- (NSString *)yyyyMMDDStr {
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    dateFormat.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];
    [dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SZZZZZ"]; //iso 8601 format
    NSDate *output = [dateFormat dateFromString:self.updatedAt];
    
    return [output formattedDateWithFormat:@"yyyy-MM-dd"];
}

@end
